<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>Title</title>
    <link rel="stylesheet" href="../libs/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="../stylesheets/common.css">
    <style>
        label.error{
            color: red;
        }
        .error:not(label){
            border-color: red;
        }
    </style>
</head>
<body>

<nav class="navbar navbar-expand-sm navbar-dark bg-primary">
    <a class="navbar-brand" href="#">
        <img width="30" src="../images/wbb.jpeg" alt="">
    </a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item">
                <a class="nav-link" href="../index.html">首页</a>
            </li>
            <li class="nav-item active">
                <a class="nav-link" href="./posts.html">文章</a>
            </li>
            <li class="nav-item ">
                <a class="nav-link" href="../about.html">关于我们</a>
            </li>
        </ul>
    </div>
</nav>
<section class="content">
    <aside class="bg-info">
        <a class="nav-link text-light" href="../index.html">首页</a>
        <a class="nav-link text-danger" href="./posts.html">文章</a>
        <a class="nav-link text-light" href="../about.html">关于我们</a>
    </aside>
    <main>
        <div class="d-flex justify-content-between align-items-center">
            <h1>新建文章</h1>
        </div>
        <form class="form-block needs-validation " novalidate="novalidate">
            <div class="form-group">
                <label for="title">标题</label>
                <input  name="title" type="text" class="form-control" id="title">
            </div>
            <div class="form-group">
                <label for="description">描述</label>
                <input name="description" type="text" class="form-control" id="description">
            </div>
            <div class="form-row">
                <div class="form-group col-md-6">
                    <label for="poster">海报：</label>
                    <input name="poster" type="text" class="form-control row-cols-md-6" id="poster"placeholder="请输入地址">
                </div>
                <div class="form-group col-md-3">
                    <label for="author">发布者：</label>
                    <input name="author" type="text" class="form-control" id="author">
                </div>
                <div class="form-group col-md-3">
                    <label for="type">类型：</label>
                    <select name="type"class="form-control" id="type">
                        <option value="">请选择新闻类型</option>
                    </select>
                </div>
            </div>
            <div id="div1"></div>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>

    </main>
</section>
<script src="../js/jquery-3.5.1.js"></script>
<script src="../libs/bootstrap/js/bootstrap.bundle.js"></script>
<script src="../js/posts/wangEditor.min.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/messages_zh.js"></script>
<script src="../js/posts/new.js"></script>
</body>
</html>
